
<!doctype html>
<html>
<head>
<title>紫金印象</title>
<meta charset="utf-8">
<link rel="apple-touch-icon-precomposed" href="img/ico-startup-57x57.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="max-age=0" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<style>
*{margin:0;padding:0}
body{height:100%;overflow:hidden;overflow-y:auto;background:#fff;font-size:13px;font-family:arial;-webkit-text-size-adjust:none;line-height:1.62;}
table{border-collapse:collapse;border-spacing:0}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
ul,ol,li{list-style:none;}
em{font-style:normal}
img{border:none;}
input,img{vertical-align:middle;}
q:before, q:after { content:'' }
.fn-clear:after {visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0;}
.fn-clear{*zoom:1;}
a{color:#888;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,.5);}
a:active{color:#555;-webkit-tap-highlight-color:#fff;}
h1{font-size: 16px;padding-bottom: 5px}
  .h-title{position:relative;width:100%;height:50px;background-color:#850001;box-shadow:1px 1px 2px #000;z-index:999;text-align:center;color:#fff;font-size: 18px;line-height: 2.5em}
  .h-title a{position: absolute;left:10px;top:0px;width:24px;height:24px;}
  .h-title img{width: 23px;height: 50px}
</style>
<script>
// var browser={
//     versions:function(){
//         var u = navigator.userAgent, app = navigator.appVersion;
//             return { 
//                 iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
//                 iPad: u.indexOf('iPad') > -1, //是否iPad
//             };
//          }(),
//          language:(navigator.browserLanguage || navigator.language).toLowerCase()
//      }
//      if(browser.versions.iPhone || browser.versions.iPad){
//         window.location.href='map.html';
//      }
</script>
</head>
<body>
<div class="page" style="width:100%;height:100%" >
<div class="desc dongtai"  style="width:100%;height:100%">
  <h4 class="h-title"><a href="__MODULE__/Index/menu" class="home"><img src="__PUBLIC__/images/ico-back.png" alt=""></a>金洋·紫金艺境</h4>
  <div style="width:100%;height:100%;position:relative;top:2px;" id="witmap"></div>
</div>
</div>
<div>
<script src="http://a.w-i-t.cn/jquery/1.8.1.js"></script>
<script src="http://api.map.baidu.com/api?v=1.2"></script>
<script>
  $("html").height($(window).height());
  $(".page").height($(window).height()-38);
  jQuery(document).ready(function(){  var sContent =
            '<div class="maptxt">'+
            '<h1><strong>金洋·紫金艺境</strong></h1>'+
            '<p>地址：嘉兴市由拳路谱民路交叉口（同<br/>济大学南向200米）</p>'+
            '<p>电话：0573-82956666</p>'+
            // '<p><a href="http://j.map.baidu.com/CcJwp" target="_blank">查看详细地图</a><em class="explinkico">&nbsp;</em></p>'+
            '</div>';
    var map = new BMap.Map('witmap');
    var point = new BMap.Point(120.787786, 30.735701);
    var marker = new BMap.Marker(point);
    var infoWindow = new BMap.InfoWindow(sContent);  // 创建信息窗口对象
    var point2 = new BMap.Point(120.787786, 30.735701);
    map.centerAndZoom(point2, 15);
    
    var opts = {
      width : 250,     // 信息窗口宽度
      height: 70   // 信息窗口高度
    }
    map.addOverlay(marker);

    marker.openInfoWindow(infoWindow,opts);

  });
//隐藏地址栏
addEventListener('load', function(){ setTimeout(function(){window.scrollTo(0,1);}, 0); }, false);
//微信分享
var _Conf={
      img:'http://gelingelin.zhixun.in/14loushu/img/img-share.jpg',
      w:100,
      h:100,
      url:'http://gelingelin.zhixun.in/14loushu/',
      title:'金洋·紫金艺境',
      desc:'金洋·紫金艺境，最美的城市，安放最好的青春',
      appid:''
}
function _ShareFriend() {
    WeixinJSBridge.invoke('sendAppMessage',{
          'appid': _Conf.appid,
          'img_url': _Conf.img,
          'img_width': _Conf.w,
          'img_height': _Conf.h,
          'link': _Conf.url,
          'desc': _Conf.desc,
          'title': _Conf.title
          }, function(res){
            _report('send_msg', res.err_msg);
      })
}
function _ShareTL() {
    WeixinJSBridge.invoke('shareTimeline',{
          'img_url': _Conf.img,
          'img_width': _Conf.w,
          'img_height': _Conf.h,
          'link': _Conf.url,
          'desc': _Conf.desc,
          'title': _Conf.title
          }, function(res) {
          _report('timeline', res.err_msg);
          });
}
function _ShareWB() {
    WeixinJSBridge.invoke('shareWeibo',{
          'content': _Conf.desc,
          'url': _Conf.url,
          }, function(res) {
          _report('weibo', res.err_msg);
          });
}
// 当微信内置浏览器初始化后会触发WeixinJSBridgeReady事件。
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        // 发送给好友
        WeixinJSBridge.on('menu:share:appmessage', function(argv){
            _ShareFriend();
      });

        // 分享到朋友圈
        WeixinJSBridge.on('menu:share:timeline', function(argv){
            _ShareTL();
            });

        // 分享到微博
        WeixinJSBridge.on('menu:share:weibo', function(argv){
            _ShareWB();
       });
}, false);
</script>
<div style="display:none">

</div>
</body>
</html>